package com.service;

import com.dao.GoodsMapper;
import com.pojo.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService{
    @Autowired
    private GoodsMapper goodsMapper;

    public int add(Goods goods) {
        return 0;
    }

    public int update() {
        return 0;
    }

    public Goods query(Goods goods) {
        return goods;
    }

    public List<Goods> selectAllGoods(){
        return goodsMapper.selectAllGoods();
    }

}
